package com.kern.jpademo.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by caoshi at 20:22 2021-08-03
 */
@Data
@Entity
@Table(name = "t_worker")
public class XWorker {

    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "name")
    private String name;

    @Column(name = "age")
    private int age;

    @Column(name = "salary")
    private double salary;
    
}
